import request from '@/utils/request'

// 查询数据设置列表
export function listDataSettingTree() {
  return request({
    url: '/yxdd/dataSetting/listTree',
    method: 'post'
  })
}

// 修改数据设置项
export function updateDataSetting(data) {
  return request({
    url: '/yxdd/dataSetting/update',
    method: 'post',
    data: data
  })
}

// 添加数据设置项
export function addDataSetting(data) {
  return request({
    url: '/yxdd/dataSetting/saveDataSetting',
    method: 'post',
    data: data
  })
}

// 删除数据设置项
export function deleteDataSetting(sjid) {
  return request({
    url: `/yxdd/dataSetting/delete/${sjid}`,
    method: 'post'
  })
}
